[#ftl]
[#include "commonDef.ftl" /]
${pack_own}

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

${base_pack}.common.core.domain.R;
${base_pack}.common.core.web.domain.AjaxResult;
${base_pack}.common.core.web.page.TableDataInfo;
[#-- 方法对象引入 --]
${import_method_class2}
${import_class}

/**
 * ${data_main.moduleKeyName}
 * @author ${author_str!"zhouliang"}
 * @date ${date_str}
 */
//@FeignClient(contextId = "${name_own}", value = "", url="", fallbackFactory = ${name_fallback}.class)
public interface ${name_own}{
[#if data_method??]
[#list data_method as mdx]
[#if mdx.needFlag == '1']
    /** ${mdx.methodKeyName} */[#-- method这写死的POST,其它的自行传入参数 --]
[#if checkTypeFunc(mdx.methodOprType,["getdetail","getlist"]) ]
    @RequestMapping(value="${ControllerUrl(data_main)+mdx.methodUrl}", method = RequestMethod.POST)
    public R<${mdx.tags['name_res']}> ${ControllerMethodName(data_main,mdx)}(@RequestBody ${mdx.tags['name_req']} reqInfo) throws Exception;
[#elseif checkTypeFunc(mdx.methodOprType,["getpage"]) ]
    @RequestMapping(value="${ControllerUrl(data_main)+mdx.methodUrl}", method = RequestMethod.POST)
    public TableDataInfo<${mdx.tags['name_res']}> ${ControllerMethodName(data_main,mdx)}(@RequestBody ${mdx.tags['name_req']} reqInfo) throws Exception;
[#else]
    @RequestMapping(value="${ControllerUrl(data_main)+mdx.methodUrl}", method = RequestMethod.POST)
    public R<${mdx.tags['name_res']}> ${ControllerMethodName(data_main,mdx)}(@RequestBody ${mdx.tags['name_req']} reqInfo) throws Exception;
[/#if]
[/#if]

[/#list]
[/#if]
}
